home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_07_08
/
v7n8072a.txt
< prev
next >
Wrap
Text File
|
1989-10-01
|
494b
|
28 lines
*****Listing 3*****
void someproc(p)
something * p;
{
#if DEBUG
if(!p)
{
if(report_null_pointer("someproc: p"))
return;
}
#endif
}
and use a target procedure which consists of
short report_null_pointer(where)
char * where;
{
fprintf(stderr,"NULL POINTER: %s\n",where);
return stop(where);
}
**********